#include "PlotWindow.h"

#include <QtGui>

#include "CurvePlot.h"
#include <qwt_plot.h>

PlotWindow::PlotWindow()
{
  setFixedSize(500,500);
  QVBoxLayout *vbox = new QVBoxLayout(this);
  QwtPlot *plot = new QwtPlot(); 
  plot->setFixedSize(400,400);
  plot->setAxisTitle(0,"axe 0");
  plot->setAxisTitle(2,"axe 2");
  // CurvePlot *curve = new CurvePlot(plot);  
  QPushButton *close_button = new QPushButton("Close");
  vbox->addWidget(plot);
  vbox->addWidget(close_button);
  QObject::connect(close_button,SIGNAL(clicked()),this,SLOT(close()));
}

PlotWindow::~PlotWindow()
{

}
